<template>
  <div class="statistics-main">
    <div class="item-top-box">
      <div class="item-top-box-title"></div>
      <div class="detail-btn">详情<i class="el-icon-caret-right"></i></div>
    </div>
    <div class="item-center">
      <dv-border-box-7 :color="['#0054A3', '#2BCCFF']">
        <div class="action-group">
          <div class="actions">
            <div class="item">
              <el-dropdown trigger="click">
                <span class="el-dropdown-link">
                  吉安市<i class="el-icon-arrow-down el-icon-caret-bottom"></i>
                </span>
                <el-dropdown-menu slot="dropdown">
                  <el-dropdown-item>井冈山市</el-dropdown-item>
                  <el-dropdown-item>奉和县</el-dropdown-item>
                  <el-dropdown-item>遂山县</el-dropdown-item>
                  <el-dropdown-item>永丰县</el-dropdown-item>
                  <el-dropdown-item>陕江县</el-dropdown-item>
                </el-dropdown-menu>
              </el-dropdown>
            </div>
          </div>
          <div class="actions">
            <div class="item">
              <el-dropdown trigger="click">
                <span class="el-dropdown-link">
                  2022年<i class="el-icon-arrow-down el-icon-caret-bottom"></i>
                </span>
                <el-dropdown-menu slot="dropdown">
                  <el-dropdown-item>2021年</el-dropdown-item>
                  <el-dropdown-item>2022年</el-dropdown-item>
                </el-dropdown-menu>
              </el-dropdown>
            </div>
            <div class="item">
              <el-dropdown trigger="click">
                <span class="el-dropdown-link">
                  2月<i class="el-icon-arrow-down el-icon-caret-bottom"></i>
                </span>
                <el-dropdown-menu slot="dropdown">
                  <el-dropdown-item>1月</el-dropdown-item>
                  <el-dropdown-item>2月</el-dropdown-item>
                </el-dropdown-menu>
              </el-dropdown>
            </div>
          </div>
        </div>
        <div class="numbes">
          <div class="item-group">
            <div class="item">
              <div class="icon">
                <img src="~@/assets/icon1.png" />
              </div>
              <div class="number">
                <span class="value">15</span>
                <span class="unit">件</span>
              </div>
              <div class="text">
                <span class="label">调解案件总数</span>
                <img src="~@/assets/bottom.png" />
                <span class="unit">2%</span>
              </div>
            </div>
            <div class="item">
              <div class="icon">
                <img src="~@/assets/icon2.png" />
              </div>
              <div class="number">
                <span class="value">12</span>
                <span class="unit">件</span>
              </div>
              <div class="text">
                <span class="label">调解成功数量</span>
                <img src="~@/assets/top.png" />
                <span class="unit">2%</span>
              </div>
            </div>
          </div>
          <div class="item-group">
            <div class="item">
              <div class="icon">
                <img src="~@/assets/icon3.png" />
              </div>
              <div class="number">
                <span class="value">22</span>
                <span class="unit">件</span>
              </div>
              <div class="text">
                <span class="label">疑难复杂案件</span>
                <img src="~@/assets/bottom.png" />
                <span class="unit">2%</span>
              </div>
            </div>
            <div class="item">
              <div class="icon">
                <img src="~@/assets/icon4.png" />
              </div>
              <div class="number">
                <span class="value">534.2</span>
                <span class="unit">万元</span>
              </div>
              <div class="text">
                <span class="label">调解协议涉及金额</span>
                <img src="~@/assets/top.png" />
                <span class="unit">2%</span>
              </div>
            </div>
          </div>
        </div>
      </dv-border-box-7>
    </div>
  </div>
</template>

<script>
// 本周矛盾纠纷数据统计
export default {
  name: 'Statistics',
  data () {
    return {
      city: '吉安市'
    }
  }
}
</script>

<style lang="less" scoped>
.statistics-main {
  height: 96%;
  width: 92%;
  padding: 0px 20px 20px 20px;
}
.statistics-main .item-top-box {
  display: flex;
  flex-direction: row;
  position:relative;
  position: relative;
}
.statistics-main .item-top-box-title {
  background-image: url('~@/assets/title1.png');
  background-repeat:no-repeat;
  background-size:100% 100%;
  -moz-background-size:100% 100%;
  height: 32px;
  width: 100%;
}

/* 按钮详情 */
.statistics-main .item-top-box .detail-btn {
  font-size: 16px;
  font-family: BBT;
  font-weight: normal;
  color: #2BCCFF;
  position:absolute;
  right:0;
  cursor: pointer;
}
/* 内容区域 */
.statistics-main .item-center {
  height: 90%;
  width: 100%;
  padding: 5px 0px;
}
.action-group {
  padding: 20px 20px 0px 20px;
  display: flex;
  justify-content: space-between;
}
.item-center .actions {
  display: flex;
  flex-direction: row;
  height: 30px;
  align-items: center;
  .item {
    margin-left: 10px;
  }
}
.el-dropdown {
  display: block;
}
/* 下拉央视 */
.el-dropdown-link {
  font-size: 16px;
  font-family: V07;
  font-weight: normal;
  color: #FFFFFF;
}
.el-icon-arrow-down {
  margin-left: 10px;
}
.el-dropdown-menu {
  background: #050A49;
  border: solid 0.1px #244d5a;
  font-family: V07;
  color: #FFFFFF;
  font-size: 16px;
  padding: 0;
}
.el-dropdown-menu /deep/ .popper__arrow {
  display: none;
}
.el-dropdown-menu .el-dropdown-menu__item {
  color: #FFFFFF;
  line-height: 32px;
  padding: 0 10px !important;
  border-bottom: solid 1px #244d5a;
}
.el-dropdown-menu .el-dropdown-menu__item:nth-last-child(2) {
  border: none;
}
.el-dropdown-menu__item:focus, .el-dropdown-menu__item:not(.is-disabled):hover {
  background: #050A49;
  color: #FFFFFF;
}
// 统计
.numbes {
  color: #FFFFFF;
  .item-group:last-child {
    margin-top: 10px;
  }
  .item-group {
    display: flex;
    justify-content: space-around;
    .item {
      width: 40%;
      .icon {
        width: 80px;
        height: 80px;
        margin: 0 auto;
        img {
          width: 100%;
          height: 100%;
        }
      }
      .number {
        text-align: center;
        line-height: 36px;
        .value {
          font-family: V07;
          font-size: 34px;
        }
        .unit {
          font-family: V07;
          font-size: 24px;
        }
      }
      .text {
        text-align: center;
        font-family: V07;
        font-weight: normal;
        line-height: 16px;
        .label {
          font-size: 16px;
        }
        .unit {
          font-size: 14px;
        }
      }
    }
  }
}
</style>
